import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

let app = createApp(App);

// 指令底层都是进行DOM操作
// <Demo v-upper />
app.directive("upper", {
  created() {
    console.log("created...");
  },
  mounted(el, binding) {
    console.log(el);
    console.log(binding);
    el.innerHTML = binding.value.toUpperCase();
  }
})

app.mount('#app')
